//
//  CommonModel.swift
//  Library_y
//
//  Created by JC on 2023/6/6.
//

import Foundation
import UIKit
import ObjectMapper

//MARK: 通用模型
public struct CommonModel: Mappable {
    
    // MARK: - 公共成员变量
    
    // 标题
    public var title: String = ""
    public var subtitle: String = ""
     
    // 值
    public var value: String = ""
    public var subvalue: String = ""
    public var intValue: Int = 0
    
    // 状态
    public var bool: Bool = false
    public var subbool: Bool = false
    public var special: Bool = false
    public var delete: Bool = false
    
    // 图片
    public var imgStr: String = ""
    public var imgUrl: URL? {
        return URL.init(string: imgStr)
    }
    
    public mutating func mapping(map: Map) { }
    
    public init?(map: Map) { }
    
    // MARK: - 内部接口
    
    // MARK: - 私有成员变量
    
}
